package com.baizhi.dao;

import com.baizhi.domain.Article;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ArticleDao extends MongoRepository<Article, Integer> {

    // 根据标题模糊查询
    List<Article> findByTitleLike(String title);

    // 根据点击量查询(大于)
    List<Article> findByHitsGreaterThan(Integer hits);
}
